﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Scheduler
{
    public abstract class Context
    {
        public bool UserCancelled { get; set; } = false;

        // 获取下一任务
        public abstract object Next(object workerId);
        /// <summary>
        /// 跳过站点
        /// </summary>
        /// <param name="workId"></param>
        /// <returns></returns>
        public abstract bool ShouldSkipWorker(object workId);
        public Func<object> GetNextPassDut { get; set; }
    }
}
